package Com.amit.innerclas;


interface person1
{
	void eat();
}

public class Lab4 {

	public static void main(String[] args) {
		
		person1 p=new person1() {
			
			@Override
			public void eat() {
				
				System.out.println("eat");
				
			}
		};
		
		p.eat();
		

	}

}
